package com.mars.module.admin.request;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.common.request.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 厨师请求对象 ap_chef
 *
 * @author mars
 * @date 2024-03-06
 */
@Data
@ApiModel(value = "厨师对象")
@EqualsAndHashCode(callSuper = true)
public class AppChefRequest extends PageRequest {


    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 姓名
     */
    @NotBlank(message = "请输入工作姓名")
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * 特长
     */
    @NotBlank(message = "请输入个人介绍")
    @ApiModelProperty(value = "特长")
    private String specialty;

    /**
     * 经验
     */
    @NotNull(message = "请输入工作经验")
    @ApiModelProperty(value = "经验")
    private Integer experience;

    /**
     * 评级
     */
    @ApiModelProperty(value = "评级")
    private Integer rating;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatar;

    /**
     * 预约人数
     */
    @ApiModelProperty(value = "预约人数")
    private Integer reservationCount;

    /**
     * 价格
     */
    @NotNull(message = "请输入价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    /**
     * 身份证
     */
    @Excel(name = "身份证")
    @ApiModelProperty(value = "身份证")
    private String idCard;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    @ApiModelProperty(value = "手机号")
    private String mobile;


    /**
     * 健康证
     */
    @Excel(name = "健康证")
    @ApiModelProperty(value = "健康证")
    private List<String> healthCardList;


    /**
     * 认证状态
     */
    @ApiModelProperty(value = "认证状态")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;

    /**
     * 修改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 更新人名称
     */
    @ApiModelProperty(value = "更新人名称")
    private String updateByName;
}
